package com.ztools.common.util.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author seeyon
 * 分页插件类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageUtil<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 默认页数
     */
    private int page = 1;

    /**
     * 默认个数
     */
    private int size = 20;

    /**
     * 默认排序字段
     */
    private String sortName = "id";

    /**
     * 默认排序规则
     */
    private String sortOrder = "desc";

    /**
     * 数据
     */
    private T params;
}
